home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: uucp-1.csn.net!slimer!bgeerdes
- From: bgeerdes@igs.com (Bruce Geerdes)
- Subject: Re: C to C++
- Message-ID: <1996Jan3.211433.4807@igs.com>
- Organization: Igs, Inc.
- X-Newsreader: TIN [version 1.2 PL2]
- References: <30EA2EA0.86C@comcept.ab.ca>
- Date: Wed, 3 Jan 96 21:14:33 GMT
-
- The BFP (bfp@comcept.ab.ca) wrote:
- > <#include stdio.h>
- >
- > printf("Hi")
- >
- > Will not compile for C++.
-
- I suspect that the above code will not compiler for C, either. Try:
-
- #include <stdio.h>
-
- int main()
- {
- printf("Hi");
- }
- --
- bgeerdes@igs.com (Bruce Geerdes)
-